package com.chuangjiangx.member.basic.dao.model;

import java.math.BigDecimal;
import java.util.Date;

public class InMbrPayGiftCardRule {
    private Long id;

    private Long merchantId;

    private Date beginTime;

    private Date endTime;

    private BigDecimal leastCost;

    private BigDecimal maxCost;

    private String getChannelList;

    private String wxRuleId;

    private Integer wxStatus;

    private Date createTime;

    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getLeastCost() {
        return leastCost;
    }

    public void setLeastCost(BigDecimal leastCost) {
        this.leastCost = leastCost;
    }

    public BigDecimal getMaxCost() {
        return maxCost;
    }

    public void setMaxCost(BigDecimal maxCost) {
        this.maxCost = maxCost;
    }

    public String getGetChannelList() {
        return getChannelList;
    }

    public void setGetChannelList(String getChannelList) {
        this.getChannelList = getChannelList == null ? null : getChannelList.trim();
    }

    public String getWxRuleId() {
        return wxRuleId;
    }

    public void setWxRuleId(String wxRuleId) {
        this.wxRuleId = wxRuleId == null ? null : wxRuleId.trim();
    }

    public Integer getWxStatus() {
        return wxStatus;
    }

    public void setWxStatus(Integer wxStatus) {
        this.wxStatus = wxStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", beginTime=").append(beginTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", leastCost=").append(leastCost);
        sb.append(", maxCost=").append(maxCost);
        sb.append(", getChannelList=").append(getChannelList);
        sb.append(", wxRuleId=").append(wxRuleId);
        sb.append(", wxStatus=").append(wxStatus);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrPayGiftCardRule other = (InMbrPayGiftCardRule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
            && (this.getBeginTime() == null ? other.getBeginTime() == null : this.getBeginTime().equals(other.getBeginTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getLeastCost() == null ? other.getLeastCost() == null : this.getLeastCost().equals(other.getLeastCost()))
            && (this.getMaxCost() == null ? other.getMaxCost() == null : this.getMaxCost().equals(other.getMaxCost()))
            && (this.getGetChannelList() == null ? other.getGetChannelList() == null : this.getGetChannelList().equals(other.getGetChannelList()))
            && (this.getWxRuleId() == null ? other.getWxRuleId() == null : this.getWxRuleId().equals(other.getWxRuleId()))
            && (this.getWxStatus() == null ? other.getWxStatus() == null : this.getWxStatus().equals(other.getWxStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        result = prime * result + ((getBeginTime() == null) ? 0 : getBeginTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getLeastCost() == null) ? 0 : getLeastCost().hashCode());
        result = prime * result + ((getMaxCost() == null) ? 0 : getMaxCost().hashCode());
        result = prime * result + ((getGetChannelList() == null) ? 0 : getGetChannelList().hashCode());
        result = prime * result + ((getWxRuleId() == null) ? 0 : getWxRuleId().hashCode());
        result = prime * result + ((getWxStatus() == null) ? 0 : getWxStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}